<? 

//create short variable names
  $username = $_SESSION['username'];


?>
<img class="loginleft" src="http://loki.local/~plummer/uny-con/images/littleleftedge.jpg">
		<span class="loginleft">
		<h1><strong>Status:</strong>
		<?
		if (check_valid_user() && ($_SESSION['current_attendee_id'] == $_SESSION['attendee_id'])) {
			echo 'Welcome '; echo "$username"; echo '.'; }
		if (!check_valid_user()) { 
			echo 'You are not logged in.'; }
		if ($_SESSION['attendee_id'] !== $_SESSION['current_attendee_id']) {
			$curr_id_array = get_user_info($_SESSION['current_attendee_id']);
			echo "You are currently editing ";
			echo $curr_id_array['first_name'].' '.$curr_id_array['last_name'].'\'s schedule ';
			echo "<strong><a href=\"http://loki.local/~plummer/uny-con/registration/admin_home.php\">Exit</a> | <a href=\"http://loki.local/~plummer/uny-con/registration/attendee_home.php?attendee_id=".$_SESSION['current_attendee_id']."\">View</a></strong>";
			unset($curr_id_array);
			}
		?>
		</h1></span>
	<img class="loginright" src="http://loki.local/~plummer/uny-con/images/littlerightedge.jpg">
		<span class="loginright"><a href=""><h1>
		<? if (check_valid_user()) { echo '<strong><a href="http://loki.local/~plummer/uny-con/registration/logout.php">logout</a></strong>';}
	else { echo '<strong><a href="http://loki.local/~plummer/uny-con/registration/login.php">login</a></strong>';} ?>
		</a></h1></span>